//小仓库，layout组件相关
import {defineStore} from 'pinia';

let useLayOutSettingStore = defineStore('SettingStore',{
    state:()=>{
        return {
            fold :true,//控制用户菜单折叠
            refsh:false,
            showTable:true,//是否展示标签
            showPic:false
        }
    },
    actions:{
        changeView(){
            this.fold = !this.fold
        },
        updateRefsh(){
            this.refsh = !this.refsh
        },
        changeTable(){
            this.showTable = !this.showTable
        },
        changePic(){
            this.showPic = !this.showPic

        }
    },
})
export default useLayOutSettingStore